#!/usr/bin/env python

import sys
import lengHandlers

try:
   import pygtk
   pygtk.require("2.0")
except:
   pass
try:
   import gtk
   import gtk.glade
except:
   sys.exit(1)

class pyLeng:
   """Leng's Library"""

   def __init__(self):
      self.gladefile = "leng.glade"
      self.widgetry = gtk.glade.XML(self.gladefile)
      self.handlers = lengHandlers.pyLengHandlers(self.widgetry)

      self.widgetry.signal_autoconnect(self.handlers)

def main():
   leng = pyLeng()
   gtk.main()

if __name__ == "__main__":
   main()
